// 用户信息管理模块
export default {
  namespaced: true,
  state: {
    authUser: null,
  },
  actions: {},
  mutations: {
    // login
    login(state, data) {
      state.authUser = data;
    },

    // logout
    logout(state) {
      state.authUser = null;
    },
  },
  getters: {
    isLogin(state) {
      return !!state.authUser;
    },
  },
};
